package com.kg.module.jtnc.spgl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kg.core.base.model.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 视频管理
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@TableName("kr_spgl")
@ApiModel(value = "KrSpgl对象", description = "视频管理")
public class KrSpgl implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "spgl_id", type = IdType.ASSIGN_UUID)
    private String spglId;

    @ApiModelProperty("视频编号")
    @TableField("spbh")
    private String spbh;

    @ApiModelProperty("视频名称")
    @TableField("spmc")
    private String spmc;

    @ApiModelProperty("作物品种")
    @TableField("zwpz")
    private String zwpz;

    @ApiModelProperty("生长阶段")
    @TableField("szjd")
    private String szjd;

    @ApiModelProperty("视频简介")
    @TableField("spjj")
    private String spjj;

    @ApiModelProperty("视频地址")
    @TableField("spdz")
    private String spdz;

    @ApiModelProperty("上传时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
